﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace CoolCode.DataSource
{
	public class DefaultCacheStrategy : ICacheStrategy {

		private Hashtable objectStore;

		public DefaultCacheStrategy() {
			objectStore = new Hashtable();
		}

		public void AddItem(string key, object obj) {
			objectStore.Add(key, obj);
		}

		public object GetItem(string key) {
			return objectStore[key];
		}

		public void RemoveItem(string key) {
			objectStore.Remove(key);
		}
	}
}
